package android.video.online.ui.classify;

import android.video.online.core.BasicPresenter;
import android.video.online.core.BasicView;
import android.video.online.model.Category;
import android.video.online.model.CourseModel;
import android.video.online.widget.LoadingView;

import java.util.List;

/**
 * Created by Jay on 2017/8/13.
 */

public class ClassifyContract {
    interface View extends BasicView<Presenter> {
        void onFailed();

        void onSuccessView(List<Category> categoryList);

        void onChangeContentView(Category category);

        void onSuccessCourseView(List<CourseModel> courseModels);
    }

    public interface Presenter extends BasicPresenter<View> {
        void loadAllCategory(LoadingView mLoadingView);

        void classifyItemClick(Category category);

        void loadCurrentCourse(LoadingView mLoadingView, Category category);
    }
}
